package un2;
import basic.Utiles;
public class Main {

	public static void main(String[] args) throws InterruptedException {
    new  Utiles().imprimir();
		Thread th1 = executarEnAltreFil("nomthread1");
		th1.join();
		Thread th2 = executarEnAltreFil("nomthread2");
		th2.join();
		System.out.println("Programa finalitzat.");
	}

	private static Thread executarEnAltreFil(String nom) {
		MyThread  t = new MyThread();
		t.start();
		return t;
	}
}
